package wit.dm.t2;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MainActivity2 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        Intent intent = getIntent();
        TextView textView = (TextView) findViewById(R.id.textView2);
        textView.setText("Hello, " + intent.getStringExtra("username"));
        textView.setTextSize(50);
        textView.setGravity(View.TEXT_ALIGNMENT_CENTER);
    }
}